import request from '@/utils/request'

// 查询mf178列表
export function listGood(query) {
  return request({
    url: '/mf178sys/good/list',
    method: 'get',
    params: query
  })
}

// 查询mf178详细
export function getGood(goodsId) {
  return request({
    url: '/mf178sys/good/' + goodsId,
    method: 'get'
  })
}

// 新增mf178
export function addGood(data) {
  return request({
    url: '/mf178sys/good',
    method: 'post',
    data: data
  })
}

// 修改mf178
export function updateGood(data) {
  return request({
    url: '/mf178sys/good',
    method: 'put',
    data: data
  })
}

// 删除mf178
export function delGood(goodsId) {
  return request({
    url: '/mf178sys/good/' + goodsId,
    method: 'delete'
  })
}

export function syncGood() {
  return request({
    url: '/mf178/getSupplyGoodManageListAndSync',
    method: 'get'
  })
}

// 修改mf178
export function updateGoodSupplierService(data) {
  return request({
    url: '/mf178sys/updateGoodSupplierService',
    method: 'post',
    data: data
  })
}
